﻿<html>

	<head>
		<title>新增快递</title>
		<meta charset="utf-8">
		<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
		<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">

		<link href="../../css/skin/default/style.css" rel="stylesheet" type="text/css" />
		<link rel="stylesheet" href="../../css/dialog.css">
		<link href="../../js/lib/ligerUI/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" />

		<script src="../../js/lib/jquery/jquery-1.10.2.min.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>

		<script src="../../js/lib/ligerUI/js/plugins/ligerPopupEdit.js"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerLayout.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerGrid.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerForm.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerCheckBox.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerComboBox.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerDateEditor.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerRadio.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerTextBox.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerSpinner.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerTree.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerDialog.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerDrag.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerResizable.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerTip.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerMenu.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerToolBar.js" type="text/javascript"></script>
		<script src="../../js/JS/XHD.js" type="text/javascript"></script>
		<script src="../../js/lib/jquery.form.js" type="text/javascript"></script>
		<script src="../../js/lib/json2.js" type="text/javascript"></script>
		<script src="../../js/dialog.js"></script>
		<script src="../../js/JS/layout.js"></script>
		<script src="../../js/constants.js" type="text/javascript"></script>
		<script src="../../js/api.js" type="text/javascript"></script>

		<script type="text/javascript">
			var row; 
			$(function() {

				$("form").ligerForm(); 
				
				row = JSON.parse(unescape($api.getparastr("data")));
				
				if(!isEmpty(row)) {
					id = row.ID;
					$api.loadJsonToForm(row); 
				} 

			});

			function f_save() { 
				if($api.isEmpty($("#Fname").val())){
					alert("国籍名称不能为空！");
					return;
				}
			  if($api.isEmpty($("#Fcode").val())){
					alert("国籍编码！");
					return;
				}
				if(!$api.isEmpty(row)) { 
					var ret = $("form").serializeObject();
					ret.ID = row.ID; 
					var obj = {
						"data":ret,
						"action":"edit"
					}
					return obj;

				} else {
					var ret = $("form").serializeObject(); 
					var obj = {
						"data":ret,
						"action":"add"
					}
					return obj;
				}

			}
		</script>
	</head>

	<body class="mainbody">
		<form>
			<div class="div-content">
				<div class="divhead">填写快递信息</div>
				<hr class="divline" />
				<dl>
					<dt>国籍名称</dt>
					<dd>
						<div style="float:left">
							<input type="text" id="Fname" maxlength="16" name="Fname" ltype="text" ligerui="{width:200}" validate="{required:true,minlength:4,maxlength:30}" />
						</div>
						<div style="float:left"> <span class="Validform_checktip" id="lnum" style="float:left">*必须填写</span></div>
					</dd>
				</dl>
				<dl>
					<dt>国籍编码</dt>
					<dd>
						<input type="text" id="Fcode" name="Fcode" ltype="text" ligerui="{width:180}" validate="{required:true}" />
					</dd>
				</dl>

				 
			</div>
		</form>
	</body>

</html>